import { Sprite, Texture } from "three";
import { ThreeMaterial } from "./material";


export class ThreeSprite {
    create(texture: Texture) {
        const spriteMaterial = new ThreeMaterial().sprite({ map: texture });
        const sprite = new Sprite(spriteMaterial);
        return sprite;
    }
}